<?php
header("content-type:text/hmtl;charset=utf8");
// 天气接口
class Ser
{
	private $city;

	function __construct()
	{
		$this->city = $_GET['city'];
		$this->getWeather();

	}
	public function getWeather(){
		$url="http://api.k780.com:88/?app=weather.future&weaid=$this->city&&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json";
		$data = file_get_contents($url);
		echo $data;
	}
}
  new Ser();
?>